const {
  Base
} = require('./base.js')

class GamesModel extends Base {
  constructor() {
    super()
  }
  /**
   * 游戏活动详情
   */
  gameDetail(data, needStatus, hideLoading, noRefetch) {
    return this.promiseRequest('/marketing/activity/get', data, needStatus, hideLoading, noRefetch)
  }
  /**
   * 游戏抽奖
   */
  gameLottery(data, needStatus, hideLoading, noRefetch) {
    return this.promiseRequest('/marketing/activity/lottery/result', data, needStatus, hideLoading, noRefetch)
  }
  /**
   * 中奖纪录
   */
  gameRecord(data, needStatus, hideLoading, noRefetch) {
    return this.promiseRequest('/marketing/activity/record/query', data, needStatus, hideLoading, noRefetch)
  }
  /**
   * 刮奖验证
   */
  gameVerify(data, needStatus, hideLoading, noRefetch) {
    return this.promiseRequest('/marketing/activity/lottery/verify', data, needStatus, hideLoading, noRefetch)
  }
  /**
   * 查询注册或小游戏活动列表
   */
  activityList(data) {
    return this.promiseRequest('/marketing/activity/front/list', data, false, true)
  }
  /**
   * 参与分享活动
   */
  shareJoin(data) {
    return this.promiseRequest('/marketing/activity/share/join', data, false, true)
  }
  /**
   * 查询线上游戏列表
   */
  getGameLists(data) {
    return this.promiseRequest('/wechat/cms/page/content', data, true)
  }
}

module.exports = {
  GamesModel
}